<?php

use Illuminate\Database\Seeder;

class PermissionTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
      DB::table('permission')->insert(['id'=>'1','module'=> 'foundation','class'=> '系统管理','action'=> '系统管理','name'=> '系统管理','display'=> '1','pid'=> '0','sort'=> '0','level'=> '1','mark'=> '系统管理页面，不作权限验证，只用做菜单显示','add_time'=> '0']);
      DB::table('permission')->insert(['id'=>'2','module'=> 'foundation','class'=> 'group','action'=> 'index','name'=> '用户组管理','display'=> '1','pid'=> '67','sort'=> '2','level'=> '3','mark'=> '用户组管理页面','add_time'=> '0']);
      DB::table('permission')->insert(['id'=>'3','module'=> 'foundation','class'=> 'acl','action'=> 'index','name'=> '功能管理','display'=> '1','pid'=> '67','sort'=> '1','level'=> '3','mark'=> '功能管理页面','add_time'=> '0']);
      DB::table('permission')->insert(['id'=>'4','module'=> 'foundation','class'=> 'user','action'=> 'index','name'=> '用户管理','display'=> '1','pid'=> '67','sort'=> '3','level'=> '3','mark'=> '用户管理页面','add_time'=> '0']);
      DB::table('permission')->insert(['id'=>'20','module'=> 'foundation','class'=> 'user','action'=> 'add','name'=> '增加用户','display'=> '0','pid'=> '4','sort'=> '0','level'=> '4','mark'=> '增加一个用户','add_time'=> '0']);
      DB::table('permission')->insert(['id'=>'23','module'=> 'foundation','class'=> 'group','action'=> 'add','name'=> '增加用户组','display'=> '0','pid'=> '2','sort'=> '0','level'=> '4','mark'=> '增加用户组','add_time'=> '1406882443']);
      DB::table('permission')->insert(['id'=>'24','module'=> 'foundation','class'=> 'group','action'=> 'edit','name'=> '用户组编辑','display'=> '0','pid'=> '2','sort'=> '0','level'=> '4','mark'=> '用户组编辑','add_time'=> '1406882515']);
      DB::table('permission')->insert(['id'=>'25','module'=> 'foundation','class'=> 'group','action'=> 'delete','name'=> '用户组删除','display'=> '0','pid'=> '2','sort'=> '0','level'=> '4','mark'=> '用户组删除、批量删除','add_time'=> '1406882542']);
      DB::table('permission')->insert(['id'=>'26','module'=> 'foundation','class'=> 'acl','action'=> 'group','name'=> '用户组权限管理','display'=> '0','pid'=> '2','sort'=> '0','level'=> '4','mark'=> '用户组权限管理','add_time'=> '1406882568']);
      DB::table('permission')->insert(['id'=>'27','module'=> 'foundation','class'=> 'user','action'=> 'edit','name'=> '用户编辑','display'=> '0','pid'=> '4','sort'=> '0','level'=> '4','mark'=> '用户编辑','add_time'=> '1406882640']);
      DB::table('permission')->insert(['id'=>'28','module'=> 'foundation','class'=> 'user','action'=> 'delete','name'=> '用户删除','display'=> '0','pid'=> '4','sort'=> '0','level'=> '4','mark'=> '用户删除','add_time'=> '1406882664']);
      DB::table('permission')->insert(['id'=>'29','module'=> 'foundation','class'=> 'acl','action'=> 'user','name'=> '用户权限管理','display'=> '0','pid'=> '4','sort'=> '0','level'=> '4','mark'=> '用户权限管理、设置用户权限','add_time'=> '1406882698']);
      DB::table('permission')->insert(['id'=>'30','module'=> 'foundation','class'=> 'acl','action'=> 'add','name'=> '增加功能菜单','display'=> '0','pid'=> '3','sort'=> '0','level'=> '4','mark'=> '增加功能菜单','add_time'=> '1406882729']);
      DB::table('permission')->insert(['id'=>'31','module'=> 'foundation','class'=> 'acl','action'=> 'edit','name'=> '功能菜单编辑','display'=> '0','pid'=> '3','sort'=> '0','level'=> '4','mark'=> '功能菜单编辑','add_time'=> '1406882754']);
      DB::table('permission')->insert(['id'=>'32','module'=> 'foundation','class'=> 'acl','action'=> 'delete','name'=> '功能菜单删除','display'=> '0','pid'=> '3','sort'=> '0','level'=> '4','mark'=> '功能菜单删除','add_time'=> '1406882775']);
      DB::table('permission')->insert(['id'=>'33','module'=> 'foundation','class'=> 'acl','action'=> 'sort','name'=> '功能菜单排序','display'=> '0','pid'=> '3','sort'=> '0','level'=> '4','mark'=> '功能菜单排序','add_time'=> '1406882815']);
      // DB::table('permission')->insert(['id'=>'34','module'=> 'blog','class'=> '内容管理','action'=> '内容管理','name'=> '内容管理','display'=> '1','pid'=> '0','sort'=> '0','level'=> '1','mark'=> '内容管理','add_time'=> '1407374295']);
      // DB::table('permission')->insert(['id'=>'35','module'=> 'blog','class'=> 'content','action'=> 'add','name'=> '发表文章','display'=> '0','pid'=> '36','sort'=> '0','level'=> '4','mark'=> '发表文章','add_time'=> '1407374316']);
      // DB::table('permission')->insert(['id'=>'36','module'=> 'blog','class'=> 'content','action'=> 'index','name'=> '文章列表','display'=> '1','pid'=> '69','sort'=> '0','level'=> '3','mark'=> '文章列表','add_time'=> '1407374358']);
      // DB::table('permission')->insert(['id'=>'37','module'=> 'blog','class'=> 'category','action'=> 'index','name'=> '文章分类管理','display'=> '1','pid'=> '69','sort'=> '0','level'=> '3','mark'=> '文章分类管理','add_time'=> '0']);
      // DB::table('permission')->insert(['id'=>'42','module'=> 'blog','class'=> 'position','action'=> 'index','name'=> '推荐位管理','display'=> '1','pid'=> '69','sort'=> '0','level'=> '3','mark'=> '推荐位管理','add_time'=> '1426735289']);
      // DB::table('permission')->insert(['id'=>'43','module'=> 'foundation','class'=> 'index','action'=> 'cs','name'=> '功能示例','display'=> '1','pid'=> '1','sort'=> '0','level'=> '2','mark'=> '一些小功能的合集，可以用来加快开发的速度。','add_time'=> '1427788812']);
      // DB::table('permission')->insert(['id'=>'44','module'=> 'foundation','class'=> 'upload','action'=> 'index','name'=> '弹出窗口上传','display'=> '0','pid'=> '66','sort'=> '0','level'=> '2','mark'=> '通用的弹出窗口上传。','add_time'=> '1427790345']);
      // DB::table('permission')->insert(['id'=>'45','module'=> 'blog','class'=> 'category','action'=> 'add','name'=> '文章分类增加','display'=> '0','pid'=> '37','sort'=> '0','level'=> '4','mark'=> '','add_time'=> '1429509721']);
      // DB::table('permission')->insert(['id'=>'46','module'=> 'blog','class'=> 'category','action'=> 'edit','name'=> '文章分类编辑','display'=> '0','pid'=> '37','sort'=> '0','level'=> '4','mark'=> '','add_time'=> '1429509748']);
      // DB::table('permission')->insert(['id'=>'47','module'=> 'blog','class'=> 'category','action'=> 'delete','name'=> '文章分类删除','display'=> '0','pid'=> '37','sort'=> '0','level'=> '3','mark'=> '','add_time'=> '1429509769']);
      // DB::table('permission')->insert(['id'=>'48','module'=> 'blog','class'=> 'content','action'=> 'edit','name'=> '编辑文章','display'=> '0','pid'=> '36','sort'=> '0','level'=> '4','mark'=> '','add_time'=> '1429509849']);
      // DB::table('permission')->insert(['id'=>'49','module'=> 'blog','class'=> 'content','action'=> 'delete','name'=> '删除文章','display'=> '0','pid'=> '36','sort'=> '0','level'=> '3','mark'=> '','add_time'=> '1429509889']);
      // DB::table('permission')->insert(['id'=>'50','module'=> 'blog','class'=> 'position','action'=> 'add','name'=> '推荐位增加','display'=> '0','pid'=> '42','sort'=> '0','level'=> '4','mark'=> '','add_time'=> '1429509926']);
      //DB::table('permission')->insert(['id'=>'51','module'=> 'blog','class'=> 'position','action'=> 'edit','name'=> '推荐位编辑','display'=> '0','pid'=> '42','sort'=> '0','level'=> '4','mark'=> '','add_time'=> '1429509949']);
      //DB::table('permission')->insert(['id'=>'52','module'=> 'blog','class'=> 'position','action'=> 'delete','name'=> '推荐位删除','display'=> '0','pid'=> '42','sort'=> '0','level'=> '4','mark'=> '','add_time'=> '1429509972']);
      DB::table('permission')->insert(['id'=>'53','module'=> 'foundation','class'=> 'log','action'=> 'action','name'=> '操作日志','display'=> '1','pid'=> '68','sort'=> '0','level'=> '3','mark'=> '查看操作日志','add_time'=> '1433319136']);
      // DB::table('permission')->insert(['id'=>'55','module'=> '工作流管理','class'=> '工作流管理','action'=> '工作流管理','name'=> '工作流管理','display'=> '1','pid'=> '1','sort'=> '0','level'=> '2','mark'=> '','add_time'=> '1434093108']);
      // DB::table('permission')->insert(['id'=>'56','module'=> 'workflow','class'=> 'index','action'=> 'add','name'=> '工作流增加','display'=> '0','pid'=> '73','sort'=> '0','level'=> '4','mark'=> '增加新的工作流程','add_time'=> '1434333268']);
      // DB::table('permission')->insert(['id'=>'57','module'=> 'workflow','class'=> 'index','action'=> 'edit','name'=> '工作流编辑','display'=> '0','pid'=> '73','sort'=> '0','level'=> '4','mark'=> '修改工作流信息','add_time'=> '1434336714']);
      // DB::table('permission')->insert(['id'=>'58','module'=> 'workflow','class'=> 'index','action'=> 'delete','name'=> '工作流删除','display'=> '0','pid'=> '73','sort'=> '0','level'=> '4','mark'=> '删除工作流','add_time'=> '1434338279']);
      // DB::table('permission')->insert(['id'=>'59','module'=> 'workflow','class'=> 'step','action'=> 'index','name'=> '工作流详情','display'=> '0','pid'=> '55','sort'=> '1','level'=> '3','mark'=> '查看工作流详情','add_time'=> '1434345119']);
      // DB::table('permission')->insert(['id'=>'60','module'=> 'workflow','class'=> 'step','action'=> 'add','name'=> '增加工作流步骤','display'=> '0','pid'=> '59','sort'=> '0','level'=> '4','mark'=> '增加工作流步骤','add_time'=> '1434349481']);
      // DB::table('permission')->insert(['id'=>'61','module'=> 'workflow','class'=> 'step','action'=> 'edit','name'=> '编辑工作流步骤','display'=> '0','pid'=> '59','sort'=> '0','level'=> '4','mark'=> '编辑工作流步骤','add_time'=> '1434353110']);
      // DB::table('permission')->insert(['id'=>'62','module'=> 'workflow','class'=> 'step','action'=> 'delete','name'=> '工作流步骤删除','display'=> '0','pid'=> '59','sort'=> '0','level'=> '4','mark'=> '工作流步骤删除','add_time'=> '1434354926']);
      // DB::table('permission')->insert(['id'=>'63','module'=> 'workflow','class'=> 'step','action'=> 'relation','name'=> '工作流设置关联人员','display'=> '0','pid'=> '59','sort'=> '0','level'=> '4','mark'=> '工作流设置关联人员','add_time'=> '1434422499']);
      DB::table('permission')->insert(['id'=>'66','module'=> '通用功能','class'=> '通用功能','action'=> '通用功能','name'=> '通用功能','display'=> '0','pid'=> '0','sort'=> '0','level'=> '1','mark'=> '通用功能，一般会开发这些功能给用户。','add_time'=> '1435545336']);
      DB::table('permission')->insert(['id'=>'67','module'=> '用户与权限管理','class'=> '用户与权限管理','action'=> '用户与权限管理','name'=> '用户与权限管理','display'=> '1','pid'=> '1','sort'=> '0','level'=> '2','mark'=> '包括功能用户管理、用户组管理、功能管理，权限管理。','add_time'=> '1436147892']);
      DB::table('permission')->insert(['id'=>'68','module'=> '系统日志','class'=> '系统日志','action'=> '系统日志','name'=> '系统日志','display'=> '1','pid'=> '1','sort'=> '0','level'=> '2','mark'=> '主要是各类的系统日志','add_time'=> '1436147908']);
      //DB::table('permission')->insert(['id'=>'69','module'=> '文章管理','class'=> '文章管理','action'=> '文章管理','name'=> '文章管理','display'=> '1','pid'=> '34','sort'=> '0','level'=> '2','mark'=> '文章管理','add_time'=> '1436150232']);
      // DB::table('permission')->insert(['id'=>'73','module'=> 'workflow','class'=> 'index','action'=> 'index','name'=> '工作流列表','display'=> '1','pid'=> '55','sort'=> '2','level'=> '3','mark'=> '','add_time'=> '1436232634']);
      DB::table('permission')->insert(['id'=>'74','module'=> 'analysis','class'=> '数据分析','action'=> '数据分析','name'=> '数据分析','display'=> '1','pid'=> '0','sort'=> '0','level'=> '1','mark'=> '数据分析主菜单，不做权限验证','add_time'=> '1436519571']);
      DB::table('permission')->insert(['id'=>'75','module'=> 'analysis','class'=> 'crawltask','action'=> 'index','name'=> '采集任务','display'=> '1','pid'=> '74','sort'=> '0','level'=> '2','mark'=> '','add_time'=> '1436519571']);
      DB::table('permission')->insert(['id'=>'76','module'=> 'analysis','class'=> 'crawltask','action'=> 'add','name'=> '添加新的采集任务','display'=> '0','pid'=> '75','sort'=> '0','level'=> '3','mark'=> '','add_time'=> '1436519571']);
    }
}
